package com.scs.application.modules.base.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.SimpleDataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;
/**
 * <p>
 *
 * </p>
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "人员仓库关系表")
@TableName("base_user_warehouse")
public class UserWarehouse extends SimpleDataEntity {


    // id ,在父类中处理

    @EntityFieldAnnotation(
            text = "",
            type = EntityFieldType.LONG,
            length = "",
            not_null = false,
            default_value = "",
            comment = "用户id"
    )
    private String userId;

    @EntityFieldAnnotation(
            text = "",
            type = EntityFieldType.LONG,
            length = "",
            not_null = false,
            default_value = "",
            comment = "部门id"
    )
    private String deptId;

    @EntityFieldAnnotation(
            text = "",
            type = EntityFieldType.LONG,
            length = "",
            not_null = true,
            default_value = "",
            comment = "仓库id"
    )
    private String warehouseId;


    @EntityFieldAnnotation(
            text = "",
            length = "20",
            not_null = true,
            default_value = "",
            comment = "关联类型(dept、user)"
    )
    private String type;


    @EntityFieldAnnotation(
            text = "",
            length = "4",
            not_null = false,
            default_value = "",
            comment = "是否是科室默认仓库，1:是，同一科室只能有一个默认仓库"
    )
    private String flagDefault;

}
